<html>
<head>
</head>
<body>

    <a href="testSwitchCoreToBlink.html">Link1</a>
    <a href="https://www.baidu.com">Link2</a>

    <a target="_blank" href="testSwitchCoreToBlink.html">Link3</a>
    <a target="_blank" href="https://www.baidu.com">Link4</a>

    <input type="button" onclick="AddInfo('testSwitchCoreToBlink.html');return false;" value="open"  />
    <input type="button" onclick="AddInfo('https://www.baidu.com');return false;" value="openBaidu"  />

    <input type="button" onclick="_open('testSwitchCoreToBlink.html');return false;" value="_open"  />
    <input type="button" onclick="_open('https://www.baidu.com');return false;" value="_openBaidu"  />

    <input type="button" onclick="_open('testSwitchCoreToBlink.html', '_blank');return false;" value="_openBlank"  />
    <input type="button" onclick="_open('https://www.baidu.com', '_blank');return false;" value="_openBlankBaidu"  />
    <script>
        window._open = function(href, target){
            var a = document.createElement('a');
            a.setAttribute('href', href);
            if(target){
                a.setAttribute('target', target);
            }
            document.body.appendChild(a);
            a.click();
            document.body.removeChild(a);
        }

        function AddInfo(url)
        {
            var wWidth = 720;
            var wHeight = 500;
            var wLeft = (window.screen.width - wWidth) / 2;
            var wTop = (window.screen.height - wHeight-30) / 2;
            var winTemp = window.open(url, "", "top=" + wTop + ",left=" + wLeft + ",height=" + wHeight + ",width=" + wWidth + ",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
        }
    </script>
    
</body>
</html>
